package com.caifu.service;

import com.caifu.pojo.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author szt
 * @since 2020-11-19
 */
public interface SysUserRoleService extends IService<SysUserRole> {

    /**
     * 功能描述: 获取用户授权角色集合
     * @Author: szt
     * @Date:   2020/11/9
     */
    String getUserRoleSet(String userNo) throws Exception;

    /**
     * 功能描述: 获取角色授权用户数
     * @Author: szt
     * @Date:   2020/11/9
     */
    int getUserRoleCount(@Param("roldId")int roldId) throws Exception;
}
